import request from "@/utils/request";

// 获取列表
export function getAllPointList(query) {
  return request({
    url: "/fxfzaqbz/data/getDisposeManagerByIaId",
    method: "get",
    params: query,
  });
}

// 提交
export function submitPoint(id) {
  return request({
    url: "/fxfzaqbz/data/updateSubmitButton/"+id,
    method: "post",
  });
}

// 选择
export function saveDisposeList(query) {
  return request({
    url: "/fxfzaqbz/data/saveDisposeList",
    method: "post",
    data:query
  });
}
  
// 修改
export function updateDisposeFX(data) {
    return request({
      url: '/fxfzaqbz/data/updateDisposeFX',
      method: 'post',
      data: data
    })
}




// 删除
export function delDisposeManager(id) {
  return request({
    url: '/fxfzaqbz/data/delDisposeManager/' + id,
    method: 'post'
  })
}

// 获取标签
export function getAllTag(query) {
    return request({
      url: "/fxfzaqbz/data/getDisposeAllLabel",
      method: "get",
      params:query
    });
  }

// 获取子标签
export function getAllSubTag(query) {
    return request({
      url: "/fxfzaqbz/data/getDisposeAllSubtitle",
      method: "get",
      params: query,
    });
  }

// 添加标签
export function saveTag(data) {
    return request({
      url: "/fxfzaqbz/data/saveDisposeLabel",
      method: "post",
      data: data,
    });
  }

// 添加子标签
export function saveSubTag(data) {
    return request({
      url: "/fxfzaqbz/data/saveDisposeSubtitle",
      method: "post",
      data: data,
    });
  }

// 标签删除
export function delTag(id) {
    return request({
      url: '/fxfzaqbz/data/delDisposeLabel/' + id,
      method: 'post'
    })
  }

// 子标签删除
export function delSubTag(id) {
    return request({
      url: '/fxfzaqbz/data/delDisposeSubtitle/' + id,
      method: 'post'
    })
}

// 获取地震应急预案
export function getPreData(data) {
  return request({
    url: "/base/jcEmergcyPlan/page",
    method: "get",
    params:data,
  });
}
  
// 获取地震应急预案
export function dowonexport(data) {
  return request({
    url: "/base/jcEmergcyPlan/export",
    method: "post",
    data:data,
  });
}
